//
//  thireGeRenJiShi.m
//  EJLX
//
//  Created by xufei on 15/12/3.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "thireGeRenJiShi.h"

@implementation thireGeRenJiShi
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        
        
       
        if ([userDic[@"shopName"]isKindOfClass:[NSNull class]])
        {
            _shopName=nil;
        }
        else
        {
             _shopName=[userDic[@"shopName"]copy];
        }
        
        
        if ([userDic[@"shopAvatar"]isKindOfClass:[NSNull class]])
        {
            _shopAvatar=nil;
        }
        else
        {
            _shopAvatar=[userDic[@"shopAvatar"]copy];
        }

        if ([userDic[@"shopId"]isKindOfClass:[NSNull class]])
        {
            _shopId=0;
        }
        else
        {
            _shopId=[userDic[@"shopId"]intValue];
        }

        
        
        
        
        
    }
    return self;
}

@end
